Prep for asser_eq failure msg format change.
authorGiles Cope <gilescope@gmail.com>
Tue, 20 Jun 2017 22:14:15 +0000 (23:14 +0100)
committerMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
Sat, 1 Jul 2017 18:39:00 +0000 (20:39 +0200)
tests/test.rs

index c05593d14bf65c43f8ccc03fc56c16f4d822d571..6e6faed3f2d34d8d634b74daf78a54d138d63d01 100644 (file)
@@ -215,10 +215,11 @@ test test_hello ... FAILED
 failures:
 
 ---- test_hello stdout ----
-<tab>thread 'test_hello' panicked at 'assertion failed: \
-    `(left == right)` (left: \
-    `\"hello\"`, right: `\"nope\"`)', src[/]foo.rs:12
-")
+<tab>thread 'test_hello' panicked at 'assertion failed:[..]")
+                       .with_stdout_contains("[..]`(left == right)`[..]")
+                       .with_stdout_contains("[..]left: `\"hello\"`,[..]")
+                       .with_stdout_contains("[..]right: `\"nope\"`[..]")
+                       .with_stdout_contains("[..]src[/]foo.rs:12[..]")
                        .with_stdout_contains("\
 failures:
     test_hello